package com.wx.gof.principle.single;

/**
 * @ClassName Bird
 * @Author wx
 * @Description 鸟
 * @Date 2018-12-02-17:09
 */
public class Bird {

    public void mainMoveMode(String birdName){
        if("鸵鸟".equals(birdName)){
            System.out.println(birdName+"用脚走");
        }else{
            System.out.println(birdName+"用翅膀飞");
        }
    }
}
